<?php
/**
 * 消息api路由
 * Created by swagger_zxd.
 * User: zxd
 * Date: 2017/11/17
 * Time: 15:47
 */

Route::group(['middleware'=>['fcAdmin.login:admin','fcAdmin.auth']],function(){

    //获取通知列表
    Route::name('notice.notice.index')->get('notice','NoticeController@index');
    //添加通知
    Route::name('notice.notice.create')->post('notice','NoticeController@store');
    //编辑通知
    Route::name('notice.notice.edit')->put('notice/{id}','NoticeController@update');
    //删除通知
    Route::name('notice.notice.delete')->delete('notice/{id}', 'NoticeController@destroy');
});